package com.it.service.Impl;

import com.it.mapper.ClassesMapper;
import com.it.pojo.Classes;
import com.it.service.ClassesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClassesServiceImpl implements ClassesService {

    @Autowired
    private ClassesMapper classesMapper;

    @Override
    public List<Classes> getAll() {
        return classesMapper.getAll();
    }

    @Override
    public void add(Classes cls) {
        classesMapper.add(cls);
    }

    @Override
    public void delete(Integer id) {
        classesMapper.delete(id);
    }

    @Override
    public void update(Classes cls) {
        classesMapper.update(cls);
    }
}
